﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E9D RID: 3741
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonDialogueOptionBattleResultInfo : IMessage<RogueCommonDialogueOptionBattleResultInfo>, IMessage, IEquatable<RogueCommonDialogueOptionBattleResultInfo>, IDeepCloneable<RogueCommonDialogueOptionBattleResultInfo>, IBufferMessage
	{
		// Token: 0x17002F78 RID: 12152
		// (get) Token: 0x0600A7A2 RID: 42914 RVA: 0x001C4FD9 File Offset: 0x001C31D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonDialogueOptionBattleResultInfo> Parser
		{
			get
			{
				return RogueCommonDialogueOptionBattleResultInfo._parser;
			}
		}

		// Token: 0x17002F79 RID: 12153
		// (get) Token: 0x0600A7A3 RID: 42915 RVA: 0x001C4FE0 File Offset: 0x001C31E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonDialogueOptionBattleResultInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002F7A RID: 12154
		// (get) Token: 0x0600A7A4 RID: 42916 RVA: 0x001C4FF2 File Offset: 0x001C31F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonDialogueOptionBattleResultInfo.Descriptor;
			}
		}

		// Token: 0x0600A7A5 RID: 42917 RVA: 0x001C4FF9 File Offset: 0x001C31F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueOptionBattleResultInfo()
		{
		}

		// Token: 0x0600A7A6 RID: 42918 RVA: 0x001C5001 File Offset: 0x001C3201
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueOptionBattleResultInfo(RogueCommonDialogueOptionBattleResultInfo other) : this()
		{
			this.battleEventId_ = other.battleEventId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A7A7 RID: 42919 RVA: 0x001C5026 File Offset: 0x001C3226
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueOptionBattleResultInfo Clone()
		{
			return new RogueCommonDialogueOptionBattleResultInfo(this);
		}

		// Token: 0x17002F7B RID: 12155
		// (get) Token: 0x0600A7A8 RID: 42920 RVA: 0x001C502E File Offset: 0x001C322E
		// (set) Token: 0x0600A7A9 RID: 42921 RVA: 0x001C5036 File Offset: 0x001C3236
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BattleEventId
		{
			get
			{
				return this.battleEventId_;
			}
			set
			{
				this.battleEventId_ = value;
			}
		}

		// Token: 0x0600A7AA RID: 42922 RVA: 0x001C503F File Offset: 0x001C323F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonDialogueOptionBattleResultInfo);
		}

		// Token: 0x0600A7AB RID: 42923 RVA: 0x001C504D File Offset: 0x001C324D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonDialogueOptionBattleResultInfo other)
		{
			return other != null && (other == this || (this.BattleEventId == other.BattleEventId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A7AC RID: 42924 RVA: 0x001C507C File Offset: 0x001C327C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BattleEventId != 0U)
			{
				num ^= this.BattleEventId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A7AD RID: 42925 RVA: 0x001C50BB File Offset: 0x001C32BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A7AE RID: 42926 RVA: 0x001C50C3 File Offset: 0x001C32C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A7AF RID: 42927 RVA: 0x001C50CC File Offset: 0x001C32CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BattleEventId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.BattleEventId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A7B0 RID: 42928 RVA: 0x001C5100 File Offset: 0x001C3300
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BattleEventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BattleEventId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A7B1 RID: 42929 RVA: 0x001C513E File Offset: 0x001C333E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonDialogueOptionBattleResultInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BattleEventId != 0U)
			{
				this.BattleEventId = other.BattleEventId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A7B2 RID: 42930 RVA: 0x001C516F File Offset: 0x001C336F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A7B3 RID: 42931 RVA: 0x001C5178 File Offset: 0x001C3378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 96U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.BattleEventId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400442E RID: 17454
		private static readonly MessageParser<RogueCommonDialogueOptionBattleResultInfo> _parser = new MessageParser<RogueCommonDialogueOptionBattleResultInfo>(() => new RogueCommonDialogueOptionBattleResultInfo());

		// Token: 0x0400442F RID: 17455
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004430 RID: 17456
		public const int BattleEventIdFieldNumber = 12;

		// Token: 0x04004431 RID: 17457
		private uint battleEventId_;
	}
}
